/**
 * Created by Administrator on 2017/6/21 0021.
 * Time: 10:24
 * 用途：输出配置
 */
import webpack from "webpack"
import {conf} from "./config/dist.conf"
import {baseConfig, PATHS} from "./webpack.config.base"
import CopyWebpackPlugin from "copy-webpack-plugin"
var distConfig=baseConfig.apply(conf);
//生产环境压缩配置
process.noDeprecation = true
distConfig.plugins.push(
	new webpack.optimize.UglifyJsPlugin({    //简化压缩代码
		sourcemap: false,
		compress: {
			screw_ie8: true,
			warnings: false,
			drop_debugger: true,
			drop_console: true
		},
		mangle: {
			screw_ie8: true
		},
		output: {
			comments: false,
			screw_ie8: true
		}
	})
);

export default distConfig

